//获取最后斜杠后的字符串
/**
 * @param {string} str
 * @return {string}
 * **/
export const LastStr = (str: string): string => {
  const index = str.lastIndexOf('/')
  const all = str.split('').filter((item) => item === '/')
  str = all.length === 1 ? str.substring(index, str.length) : str.substring(index + 1, str.length)
  return str
}
